/* DetectionManagement 树形结构样式 */

.detection-tree-container .ant-tree {
  background: transparent;
}

.detection-tree-container .ant-tree .ant-tree-node-content-wrapper {
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s;
  padding-inline: 3px;
}

.detection-tree-container .ant-tree .ant-tree-node-content-wrapper:hover {
  color: #0f59a4;
}

.detection-tree-container .ant-tree .ant-tree-node-selected {
  background: #1890ff !important;
  color: white !important;
}

/* 选中节点标题文字强制红色，覆盖各层级自定义颜色 */
.detection-tree-container .ant-tree .ant-tree-node-selected .ant-tree-title {
  color: white !important;
}

.detection-tree-container .ant-tree .ant-tree-switcher {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 0;
}

.detection-tree-container .ant-tree .ant-tree-switcher:before {
  width: 16px;
}

.detection-tree-container .ant-tree-indent-unit {
  width: 10px;
}

/* 第一层级整行背景色 */
.detection-tree-container .ant-tree-treenode.level-1-node {
  background: #b3e0ff !important; /* 比 #e6f7ff 深一点 */
  width: 100%;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* 第二层级整行背景色 */
.detection-tree-container .ant-tree-treenode.level-2-node {
  background: #eef8ff !important;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* 树形结构容器样式 */
.detection-tree-container {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 16px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 树形结构按钮样式 */
.detection-tree-container .ant-btn-text {
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.2s;
}

.detection-tree-container .ant-btn-text:hover {
  color: #1890ff;
}

.detection-tree-container .ant-btn-text.ant-btn-dangerous {
  color: rgba(0, 0, 0, 0.45);
}

.detection-tree-container .ant-btn-text.ant-btn-dangerous:hover {
  color: #ff4d4f;
}

/* DetectionManagement 导航项样式 */
.detection-nav-item {
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  border: 1px solid #f5f5f5;
  color: #666;
  transition: all 0.2s;
  border-color: #d9d9d9 !important;
}

.detection-nav-item:hover {
  color: #1890ff !important;
}

.detection-nav-item-active {
  background-color: #e6f7ff !important;
  border-color: #1890ff !important;
  color: #1890ff !important;
  font-weight: bold !important;
}
